import Request from '@/utils/request'
import { PersonParams, PersonRes, VehicleParams } from './types/retrieval'

/**
 * 人员轨迹接口开始
 */
// 人员轨迹列表
export function queryEsPersonData (params: PersonParams) {
  return Request<PersonRes>({
    url: '/xzzagk/query/queryEsPersonData',
    method: 'GET',
    params
  })
}

/**
 * 人员轨迹结束
 */

/**
 * 车辆轨迹接口开始
 */
// 车辆轨迹列表
export function queryEsVehicleData (params: VehicleParams) {
  return Request({
    url: '/xzzagk/query/queryEsVehicleData',
    method: 'GET',
    params
  })
}
/**
 * 车辆轨迹接口结束
 */

/**
 * 人员预警接口开始
 */
// 人员预警列表
export function queryEsPersonWarning (params: PersonParams) {
  return Request({
    url: '/xzzagk/query/queryEsPersonWarning',
    method: 'GET',
    params
  })
}
/**
 * 人员预警结束
 */

/**
 * 车辆预警接口开始
 */
// 车辆预警列表
export function queryEsVehicleWarning (params: VehicleParams) {
  return Request({
    url: '/xzzagk/query/queryEsVehicleWarning',
    method: 'GET',
    params
  })
}
/**
 * 车辆预警接口结束
 */

/**
 * 统一查询接口开始
 */
// 统一查询搜索
export function cloudSearch (params: any) {
  return Request({
    url: '/xzzagk/search/cloudSearch',
    method: 'POST',
    params
  })
}
// 获取档案详情
export function getPersonOrVehicleBasicData (params: any) {
  return Request({
    url: '/xzzagk/search/getPersonOrVehicleBasicData',
    method: 'POST',
    params
  })
}
// 预警布控数据
export function getDispatchAndWarningData (params: any) {
  return Request({
    url: '/xzzagk/search/getDispatchAndWarningData',
    method: 'POST',
    params
  })
}
// 人员档案关联车辆
export function getContactCarByPerson (params: any) {
  return Request({
    url: '/xzzagk/search/getContactCarByPerson',
    method: 'POST',
    params
  })
}
// 20210521车辆轨迹接口新
export function carpassWithDataAuth (params: any) {
  return Request({
    url: '/xzzagk/retrieval/carpassWithDataAuth',
    method: 'POST',
    params
  })
}
// 人员档案关联车辆
export function getPersonOrVehicleFileDetail (params: any) {
  return Request({
    url: '/xzzagk/search/getPersonOrVehicleFileDetail',
    method: 'POST',
    params
  })
}
// 通行人员
export function getPersonPassList (params: any) {
  return Request({
    url: '/xzzagk/retrieval/getPersonPassList',
    method: 'POST',
    params
  })
}
// 人员轨迹接口（照片）
export function getCzrkjbxxPersonPass (params: any) {
  return Request({
    url: '/xzzagk/search/getCzrkjbxxPersonPass',
    method: 'POST',
    params
  })
}
// 获取人员档案变更记录（分页）
export function getPersonFileUpdates (params: any) {
  return Request({
    url: '/xzzagk/search/getPersonFileUpdates',
    method: 'POST',
    params
  })
}
// 人员档案关联车辆
export function getCarByPerson (params: any) {
  return Request({
    url: '/xzzagk/search/getCarByPerson',
    method: 'POST',
    params
  })
}
// 通行购票
export function getFileTxgpList (params: any) {
  return Request({
    url: '/xzzagk/search/getFileTxgpList',
    method: 'POST',
    params
  })
}
// 购买油气
export function getBuyGas (params: any) {
  return Request({
    url: '/xzzagk/search/getBuyGas',
    method: 'POST',
    params
  })
}
// 住宿记录
export function getAccomdatios (params: any) {
  return Request({
    url: '/xzzagk/search/getAccomdatios',
    method: 'POST',
    params
  })
}
// 获取标签列表
export function biaoqianList (params: any) {
  return Request({
    url: '/xzzagk/retrieval/biaoqianList',
    method: 'POST',
    params
  })
}
// 车辆档案
export function vehicleInfo (params: any) {
  return Request({
    url: '/xzzagk/search/vehicleFiles',
    method: 'POST',
    params
  })
}
// 获取使用性质
export function getClSyxz () {
  return Request({
    url: '/xzzagk/search/getClSyxz',
    method: 'POST'
  })
}
// 获取车辆品牌
export function getClpp (params: any) {
  return Request({
    url: '/xzzagk/search/getClpp',
    method: 'POST',
    params
  })
}
// 获取驾驶员信息
export function getJsyxx (params: any) {
  return Request({
    url: '/xzzagk/search/getJsyxx',
    method: 'POST',
    params
  })
}
// 获取机动车违法信息
export function getJdcwfxx (params: any) {
  return Request({
    url: '/xzzagk/search/getJdcwfxx',
    method: 'POST',
    params
  })
}

/**
 * 统一查询接口结束
 */
